#include<stdio.h>
#include<unistd.h>

int main()
{
  int count=0;
  int a=0;
  while(1)
  {
    a=1+1;
    printf("当前a的值是%d,running times %d\n",a,count);
    count++;
    sleep(1);
  }
  



  /*
  pid_t id = fork();

  if(id<0)
  {
    perror("fork!");
    return 1;
  }
  else if(id==0)
  {
    //child
    while(1)
    {
       printf("我是子进程!,我的PID是；%d,我的父进程PID是：%d\n",getpid(),getppid());
       sleep(1);
    }
  }
  else 
  {
    //paren

    while(1)
    {
       printf("我是父亲进程!,我的PID是；%d,我的父进程PID是：%d\n",getpid(),getppid());
       sleep(1);
    }
  }
  */

  return 0;
}
